Optimal. Leaf size=124 \[ -\frac {c^3}{4 a x^4}+\frac {c^2 (b c-3 a d)}{3 a^2 x^3}-\frac {c \left (b^2 c^2-3 a b c d+3 a^2 d^2\right )}{2 a^3 x^2}+\frac {(b c-a d)^3}{a^4 x}+\frac {b (b c-a d)^3 \log (x)}{a^5}-\frac {b (b c-a d)^3 \log (a+b x)}{a^5} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 124, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.056, Rules used = {90}
\begin {gather*} \frac {b \log (x) (b c-a d)^3}{a^5}-\frac {b (b c-a d)^3 \log (a+b x)}{a^5}+\frac {(b c-a d)^3}{a^4 x}+\frac {c^2 (b c-3 a d)}{3 a^2 x^3}-\frac {c \left (3 a^2 d^2-3 a b c d+b^2 c^2\right )}{2 a^3 x^2}-\frac {c^3}{4 a x^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 90
Rubi steps
\begin {align*} \int \frac {(c+d x)^3}{x^5 (a+b x)} \, dx &=\int \left (\frac {c^3}{a x^5}+\frac {c^2 (-b c+3 a d)}{a^2 x^4}+\frac {c \left (b^2 c^2-3 a b c d+3 a^2 d^2\right )}{a^3 x^3}+\frac {(-b c+a d)^3}{a^4 x^2}-\frac {b (-b c+a d)^3}{a^5 x}+\frac {b^2 (-b c+a d)^3}{a^5 (a+b x)}\right ) \, dx\\ &=-\frac {c^3}{4 a x^4}+\frac {c^2 (b c-3 a d)}{3 a^2 x^3}-\frac {c \left (b^2 c^2-3 a b c d+3 a^2 d^2\right )}{2 a^3 x^2}+\frac {(b c-a d)^3}{a^4 x}+\frac {b (b c-a d)^3 \log (x)}{a^5}-\frac {b (b c-a d)^3 \log (a+b x)}{a^5}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.08, size = 137, normalized size = 1.10 \begin {gather*} \frac {\frac {a \left (12 b^3 c^3 x^3-6 a b^2 c^2 x^2 (c+6 d x)+2 a^2 b c x \left (2 c^2+9 c d x+18 d^2 x^2\right )-3 a^3 \left (c^3+4 c^2 d x+6 c d^2 x^2+4 d^3 x^3\right )\right )}{x^4}+12 b (b c-a d)^3 \log (x)-12 b (b c-a d)^3 \log (a+b x)}{12 a^5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 199, normalized size = 1.60
method | result | size |
default | \(\frac {\left (a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}\right ) b \ln \left (b x +a \right )}{a^{5}}-\frac {c^{3}}{4 a \,x^{4}}-\frac {a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}}{a^{4} x}-\frac {c \left (3 a^{2} d^{2}-3 a b c d +b^{2} c^{2}\right )}{2 a^{3} x^{2}}-\frac {c^{2} \left (3 a d -b c \right )}{3 a^{2} x^{3}}-\frac {\left (a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}\right ) b \ln \left (x \right )}{a^{5}}\) | \(199\) |
norman | \(\frac {-\frac {c^{3}}{4 a}-\frac {\left (a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}\right ) x^{3}}{a^{4}}-\frac {c \left (3 a^{2} d^{2}-3 a b c d +b^{2} c^{2}\right ) x^{2}}{2 a^{3}}-\frac {c^{2} \left (3 a d -b c \right ) x}{3 a^{2}}}{x^{4}}+\frac {\left (a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}\right ) b \ln \left (b x +a \right )}{a^{5}}-\frac {\left (a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}\right ) b \ln \left (x \right )}{a^{5}}\) | \(199\) |
risch | \(\frac {-\frac {c^{3}}{4 a}-\frac {\left (a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}\right ) x^{3}}{a^{4}}-\frac {c \left (3 a^{2} d^{2}-3 a b c d +b^{2} c^{2}\right ) x^{2}}{2 a^{3}}-\frac {c^{2} \left (3 a d -b c \right ) x}{3 a^{2}}}{x^{4}}+\frac {b \ln \left (-b x -a \right ) d^{3}}{a^{2}}-\frac {3 b^{2} \ln \left (-b x -a \right ) c \,d^{2}}{a^{3}}+\frac {3 b^{3} \ln \left (-b x -a \right ) c^{2} d}{a^{4}}-\frac {b^{4} \ln \left (-b x -a \right ) c^{3}}{a^{5}}-\frac {b \ln \left (x \right ) d^{3}}{a^{2}}+\frac {3 b^{2} \ln \left (x \right ) c \,d^{2}}{a^{3}}-\frac {3 b^{3} \ln \left (x \right ) c^{2} d}{a^{4}}+\frac {b^{4} \ln \left (x \right ) c^{3}}{a^{5}}\) | \(238\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.32, size = 208, normalized size = 1.68 \begin {gather*} -\frac {{\left (b^{4} c^{3} - 3 \, a b^{3} c^{2} d + 3 \, a^{2} b^{2} c d^{2} - a^{3} b d^{3}\right )} \log \left (b x + a\right )}{a^{5}} + \frac {{\left (b^{4} c^{3} - 3 \, a b^{3} c^{2} d + 3 \, a^{2} b^{2} c d^{2} - a^{3} b d^{3}\right )} \log \left (x\right )}{a^{5}} - \frac {3 \, a^{3} c^{3} - 12 \, {\left (b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}\right )} x^{3} + 6 \, {\left (a b^{2} c^{3} - 3 \, a^{2} b c^{2} d + 3 \, a^{3} c d^{2}\right )} x^{2} - 4 \, {\left (a^{2} b c^{3} - 3 \, a^{3} c^{2} d\right )} x}{12 \, a^{4} x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.64, size = 213, normalized size = 1.72 \begin {gather*} -\frac {3 \, a^{4} c^{3} + 12 \, {\left (b^{4} c^{3} - 3 \, a b^{3} c^{2} d + 3 \, a^{2} b^{2} c d^{2} - a^{3} b d^{3}\right )} x^{4} \log \left (b x + a\right ) - 12 \, {\left (b^{4} c^{3} - 3 \, a b^{3} c^{2} d + 3 \, a^{2} b^{2} c d^{2} - a^{3} b d^{3}\right )} x^{4} \log \left (x\right ) - 12 \, {\left (a b^{3} c^{3} - 3 \, a^{2} b^{2} c^{2} d + 3 \, a^{3} b c d^{2} - a^{4} d^{3}\right )} x^{3} + 6 \, {\left (a^{2} b^{2} c^{3} - 3 \, a^{3} b c^{2} d + 3 \, a^{4} c d^{2}\right )} x^{2} - 4 \, {\left (a^{3} b c^{3} - 3 \, a^{4} c^{2} d\right )} x}{12 \, a^{5} x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 355 vs.
\(2 (114) = 228\).
time = 0.70, size = 355, normalized size = 2.86 \begin {gather*} \frac {- 3 a^{3} c^{3} + x^{3} \left (- 12 a^{3} d^{3} + 36 a^{2} b c d^{2} - 36 a b^{2} c^{2} d + 12 b^{3} c^{3}\right ) + x^{2} \left (- 18 a^{3} c d^{2} + 18 a^{2} b c^{2} d - 6 a b^{2} c^{3}\right ) + x \left (- 12 a^{3} c^{2} d + 4 a^{2} b c^{3}\right )}{12 a^{4} x^{4}} - \frac {b \left (a d - b c\right )^{3} \log {\left (x + \frac {a^{4} b d^{3} - 3 a^{3} b^{2} c d^{2} + 3 a^{2} b^{3} c^{2} d - a b^{4} c^{3} - a b \left (a d - b c\right )^{3}}{2 a^{3} b^{2} d^{3} - 6 a^{2} b^{3} c d^{2} + 6 a b^{4} c^{2} d - 2 b^{5} c^{3}} \right )}}{a^{5}} + \frac {b \left (a d - b c\right )^{3} \log {\left (x + \frac {a^{4} b d^{3} - 3 a^{3} b^{2} c d^{2} + 3 a^{2} b^{3} c^{2} d - a b^{4} c^{3} + a b \left (a d - b c\right )^{3}}{2 a^{3} b^{2} d^{3} - 6 a^{2} b^{3} c d^{2} + 6 a b^{4} c^{2} d - 2 b^{5} c^{3}} \right )}}{a^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.12, size = 220, normalized size = 1.77 \begin {gather*} \frac {{\left (b^{4} c^{3} - 3 \, a b^{3} c^{2} d + 3 \, a^{2} b^{2} c d^{2} - a^{3} b d^{3}\right )} \log \left ({\left | x \right |}\right )}{a^{5}} - \frac {{\left (b^{5} c^{3} - 3 \, a b^{4} c^{2} d + 3 \, a^{2} b^{3} c d^{2} - a^{3} b^{2} d^{3}\right )} \log \left ({\left | b x + a \right |}\right )}{a^{5} b} - \frac {3 \, a^{4} c^{3} - 12 \, {\left (a b^{3} c^{3} - 3 \, a^{2} b^{2} c^{2} d + 3 \, a^{3} b c d^{2} - a^{4} d^{3}\right )} x^{3} + 6 \, {\left (a^{2} b^{2} c^{3} - 3 \, a^{3} b c^{2} d + 3 \, a^{4} c d^{2}\right )} x^{2} - 4 \, {\left (a^{3} b c^{3} - 3 \, a^{4} c^{2} d\right )} x}{12 \, a^{5} x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.14, size = 186, normalized size = 1.50 \begin {gather*} -\frac {\frac {c^3}{4\,a}+\frac {x^3\,\left (a^3\,d^3-3\,a^2\,b\,c\,d^2+3\,a\,b^2\,c^2\,d-b^3\,c^3\right )}{a^4}+\frac {c^2\,x\,\left (3\,a\,d-b\,c\right )}{3\,a^2}+\frac {c\,x^2\,\left (3\,a^2\,d^2-3\,a\,b\,c\,d+b^2\,c^2\right )}{2\,a^3}}{x^4}-\frac {2\,b\,\mathrm {atanh}\left (\frac {b\,{\left (a\,d-b\,c\right )}^3\,\left (a+2\,b\,x\right )}{a\,\left (-a^3\,b\,d^3+3\,a^2\,b^2\,c\,d^2-3\,a\,b^3\,c^2\,d+b^4\,c^3\right )}\right )\,{\left (a\,d-b\,c\right )}^3}{a^5} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________